package com.xctech.yace.swing;

import com.xctech.yace.util.DirUtil;
import com.xctech.yace.util.ReadFiledXML;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Properties;

public interface InitFileConfig {

    public static Map<String, String> modelMap = ReadFiledXML.readModelFile("conf/json");

    public static Map<String, String> modelMapSql = ReadFiledXML.readModelFile("conf/sql");

    public static Map<String, List<String>> topicMap = ReadFiledXML.readFiledsFile();

    //表名 <主键串>
//    public static Map<String,List<String>> vimMap = ReadFiledXML.readFiledsFile();

    public static String consumerFilePath = DirUtil.getOrgPath()+"conf/kafkaconsumer.properties";

    public static String productFilePath = DirUtil.getOrgPath()+"conf/kafka.properties";

    public static String dbFilePath = DirUtil.getOrgPath()+"conf/db.properties";

    public static String tip = "select \n" +
            "     key, " +
            "     actseq, " +
            "     offset, \n" +
            "     xid, " +
            "     table_name, " +
            "     op, " +
            "     js_time, \n" +
            "     occu_date, " +
            "     occu_time \n" +
            "from \n" +
            "     TRADE_META_DATA \n" +
            "where \n" +
            "     ";
}
